package com.discovery.main;

import java.util.Arrays;
import java.util.List;
import java.util.Random;

public class FCHostInitiator
{

   private String       portWwn           = null;
   private String       nodeWwn           = null;
   private List<String> esxLunIdentifier  = null;
   private String       fcHostInitiatorId = null;

   public String getPortWwn()
   {
      return portWwn;
   }

   public void setPortWwn(String portWwn)
   {
      this.portWwn = portWwn;
   }

   public String getNodeWwn()
   {
      return nodeWwn;
   }

   public void setNodeWwn(String nodeWwn)
   {
      this.nodeWwn = nodeWwn;
   }

   public FCHostInitiator getDummyFCHostInitiator()
   {
      FCHostInitiator fcHostInitiator = new FCHostInitiator();
      fcHostInitiator.setFcHostInitiatorId(Util.getRandomInteger(0, 100,
               new Random())
               + "");
      fcHostInitiator.setPortWwn("portWwn"
               + Util.getRandomAlphaNumericString(5));
      fcHostInitiator.setNodeWwn("nodeWwn"
               + Util.getRandomAlphaNumericString(5));
      fcHostInitiator.setEsxLunIdentifier(Arrays.asList(new String[] {
               "dummyFCInitiator1", "dummyFCInitiator2" }));
      return fcHostInitiator;
   }

   public List<String> getEsxLunIdentifier()
   {
      return esxLunIdentifier;
   }

   public void setEsxLunIdentifier(List<String> esxLunIdentifier)
   {
      this.esxLunIdentifier = esxLunIdentifier;
   }

   public String getFcHostInitiatorId()
   {
      return fcHostInitiatorId;
   }

   public void setFcHostInitiatorId(String fcHostInitiatorId)
   {
      this.fcHostInitiatorId = fcHostInitiatorId;
   }
}
